const fetchReducer =(state={},action={}) =>{
    const {type,payload} = action;

    switch(type){
        case "FETCH_DATA_FINISH":
        return Object.assign({},state,{list:payload});
        default:
        return state;
    }
}

export default fetchReducer;